package org.jeecgframework.codegenerate.generate.pojo.onetomany;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

import org.jeecgframework.codegenerate.generate.pojo.ColumnVo;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class SubTableVo {
	private String entityPackage;
	private String tableName;
	private String entityName;
	private String primaryKeyPolicy;
	private String sequenceCode;
	private String ftlDescription;
	private String[] originalForeignKeys;
	private String[] originalForeignMainKeys;
	private String[] foreignKeys;
	private String[] foreignMainKeys;
	private String foreignRelationType;
	private List<ColumnVo> colums;
	private List<ColumnVo> originalColumns;
	private Map<?, ?> extendParams;

	public String toString() {
		return "{\"entityPackage\":\"" + this.entityPackage + "\",\"tableName\":\"" + this.tableName
				+ "\",\"entityName\":\"" + this.entityName + "\",\"primaryKeyPolicy\":\"" + this.primaryKeyPolicy
				+ "\",\"sequenceCode\":\"" + this.sequenceCode + "\",\"ftlDescription\":\"" + this.ftlDescription
				+ "\",\"originalForeignKeys\":\"" + Arrays.toString(this.originalForeignKeys) + "\",\"foreignKeys\":\""
				+ Arrays.toString(this.foreignKeys) + "\",\"colums\":" + this.colums + ",\"originalColumns\":"
				+ this.originalColumns + "}";
	}
}
